package org.jeecg.modules.monitoring.j_monitoring.entity.fdnEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description: 网关-网络流量数据
 * @Author: xiaoyq
 * @Date:   2023-06-18
 * @Version: V1.0
 */
@Data
public class IPInterface implements Comparable{

    @ApiModelProperty(value = "接口名称")
    private String name;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "最大速度")
    private String maxSpeed;

    @ApiModelProperty(value = "上行")
    private String up;

    @ApiModelProperty(value = "下行")
    private String down;

    @ApiModelProperty(value = "定位")
    private int position;


    @Override
    public int compareTo(Object o) {
        IPInterface s = (IPInterface) o;
        if (this.position > s.position) {
            return 1;
        }else {
            return -1;
        }
    }


}
